// app.js
App({
  onLaunch() {
    // 安全距离
    const res = wx.getMenuButtonBoundingClientRect()
    this.globalData.safeTop = res.top + res.height + 'px'
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)

    // 登录
    wx.login({
      success: res => {
        // 发送 res.code 到后台换取 openId, sessionKey, unionId
      }
    })
  },
  globalData: {
    safeTop: '',
    userInfo: null,
    videos: [], // 视频列表
    imgs: [
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img3.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img3.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img3.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img3.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img3.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img2.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img3.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img3.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img3.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img3.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img2.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img3.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img3.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img3.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img2.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img3.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img3.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img3.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img3.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img3.jpg',
      // 'https://guinness2024.oss-cn-shanghai.aliyuncs.com/wximgs/img2.jpg',
    ], // 所有图片
    fixedImgs: [], // 模版上固定的两张图片
    isCanPrint: true, // 是否可以打印
    uuid: '',
    userPhotoList: [], // 用户选择的照片
    qmimg:'',// 用户的签名图片
  }
})